<template>
    <el-dialog
        v-model="dialogVisible"
        title="操作"
        width="30%"
        :before-close="handleClose"
    >
        <span>请确认是否删除该策略</span>
        <template #footer>
          <span class="dialog-footer">
            <el-button @click="dialogVisible = false">取消</el-button>
            <el-button type="primary" @click="dialogVisible = false">确认</el-button>
          </span>
        </template>
    </el-dialog>
</template>

<script>
import {ref} from 'vue'

export default {

    setup() {
        const dialogVisible = ref(false);

        const switchVisible = () => {
            dialogVisible.value = true;
        }
        const handleClose = () => {
            dialogVisible.value = false
        }

        return {
            dialogVisible,
            switchVisible,
            handleClose
        }
    }
}

</script>